package mr.zhang.dao.impl;

import mr.zhang.dao.Role_ShiroDao;
import mr.zhang.pojo.UserBean;
import mr.zhang.pojo.model.SysRole;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by jerry on 15/2/16.
 * E-mail:huaxinxc@me.com
 */
public class Role_ShiroImpl implements Role_ShiroDao {




    @Autowired
    private SessionFactory sessionFactory;

    Session session ;

    private List<SysRole> sysRoleList ;

    private List<UserBean> userBeanList;



    @Override
    public UserBean getUserName() {

        session = sessionFactory.openSession();
        UserBean userBean = new UserBean();
         session.createQuery("FROM SysAuthority").executeUpdate();

        return null;
    }

    @Override
    public UserBean getRoleName() {
        return null;
    }
}
